package chessboard;

import java.awt.Color;

public class Field {

	private char xPos;
	private int yPos;
	private ChessMan chessMan;

	public Field(char xPos, int yPos) {
		this.xPos = xPos;
		this.yPos = yPos;
		this.setChessMan(new ChessMan(Type.NONE, Color.GRAY));
	}

	public Field(char xPos, int yPos, ChessMan chessMan) {
		this.xPos = xPos;
		this.yPos = yPos;
		this.setChessMan(chessMan);
	}

	public char getXPos() {
		return xPos;
	}

	public int getYPos() {
		return yPos;
	}

	public ChessMan getChessMan() {
		return chessMan;
	}

	public void setChessMan(ChessMan chessMan) {
		this.chessMan = chessMan;
	}

	public String toString(){
		String s = xPos + String.valueOf(yPos);
		return s;
	}
	
}
